package com.dating.libs.web.services;

import android.annotation.SuppressLint;
import java.util.Hashtable;
import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;

@SuppressLint("UseValueOf")
public final class Credential extends SoapObject {
    private java.util.Calendar expireTime;

    private java.lang.String refreshToken;

    private java.lang.String token;

    private int userID;

    public Credential() {
        super("", "");
    }
    public void setExpireTime(java.util.Calendar expireTime) {
        this.expireTime = expireTime;
    }

    public java.util.Calendar getExpireTime(java.util.Calendar expireTime) {
        return this.expireTime;
    }

    public void setRefreshToken(java.lang.String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public java.lang.String getRefreshToken(java.lang.String refreshToken) {
        return this.refreshToken;
    }

    public void setToken(java.lang.String token) {
        this.token = token;
    }

    public java.lang.String getToken(java.lang.String token) {
        return this.token;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public int getUserID(int userID) {
        return this.userID;
    }

    public int getPropertyCount() {
        return 4;
    }

    public Object getProperty(int __index) {
        switch(__index)  {
        case 0: return expireTime;
        case 1: return refreshToken;
        case 2: return token;
        case 3: return new Integer(userID);
        }
        return null;
    }

    public void setProperty(int __index, Object __obj) {
        switch(__index)  {
        case 0: expireTime = (java.util.Calendar) __obj; break;
        case 1: refreshToken = (java.lang.String) __obj; break;
        case 2: token = (java.lang.String) __obj; break;
        case 3: userID = Integer.parseInt(__obj.toString()); break;
        }
    }

	@SuppressWarnings("rawtypes")
	public void getPropertyInfo(int __index, Hashtable __table, PropertyInfo __info) {
        switch(__index)  {
        case 0:
            __info.name = "expireTime";
            __info.type = java.util.Calendar.class; break;
        case 1:
            __info.name = "refreshToken";
            __info.type = java.lang.String.class; break;
        case 2:
            __info.name = "token";
            __info.type = java.lang.String.class; break;
        case 3:
            __info.name = "userID";
            __info.type = Integer.class; break;
        }
    }
	@Override
	public String toString() {
		return "Credential [expireTime=" + expireTime + ", refreshToken="
				+ refreshToken + ", token=" + token + ", userID=" + userID
				+ "]";
	}
	
}
